home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / encodings / iso8859_1.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  2KB  |  39 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. """ Python Character Mapping Codec generated from '8859-1.TXT' with gencodec.py.
  5.  
  6. Written by Marc-Andre Lemburg (mal@lemburg.com).
  7.  
  8. (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
  9. (c) Copyright 2000 Guido van Rossum.
  10.  
  11. """
  12. import codecs
  13.  
  14. class Codec(codecs.Codec):
  15.     
  16.     def encode(self, input, errors = 'strict'):
  17.         return codecs.charmap_encode(input, errors, encoding_map)
  18.  
  19.     
  20.     def decode(self, input, errors = 'strict'):
  21.         return codecs.charmap_decode(input, errors, decoding_map)
  22.  
  23.  
  24.  
  25. class StreamWriter(Codec, codecs.StreamWriter):
  26.     pass
  27.  
  28.  
  29. class StreamReader(Codec, codecs.StreamReader):
  30.     pass
  31.  
  32.  
  33. def getregentry():
  34.     return (Codec().encode, Codec().decode, StreamReader, StreamWriter)
  35.  
  36. decoding_map = codecs.make_identity_dict(range(256))
  37. decoding_map.update({ })
  38. encoding_map = codecs.make_encoding_map(decoding_map)
  39.